list1=["刘备","诸葛亮","曹操","周瑜","关羽"]
#结果是：['羽关','瑜周','操曹','亮葛诸','备刘']
# list1.reverse() #对原数据有改变
# print(list3)
list2=list1[::-1]
# list3=[]
# # print(list2)
# for a in list2:
#    list3.append(a[::-1])
# # print(list3)

index=1
# print(list1[index])
dict1={
   "name":"lisi"
}
key="name"
# print(dict1["name"])
# print(dict1[key])

s="a"
n=12
# print(s+n)
list3=[1,2,2]
# print(list1+list3)# extend
# print(list3*2)   #元素重复

# for a in list3:
#    print(a)
# else:
dict2 = {"name"+str(n):n*2 for n in range(1,6)}
print(dict2)











